<?php
namespace app\msgapi\controller;

use app\msgapi\service\HsgroupService;

class Hsgroup extends Base
{
    public function __construct(HsgroupService $service)
    {
        parent::__construct($service);
        $this->service = $service;
    }


    //获取所有权限组
    public function getAllGroup()
    {
        return $this->service->getAllGroup();
    }

    //获取授权
    public function getAuth($id)
    {
        return $this->service->getAuthData($id);
    }
    // 授权
    public function auth($id)
    {
        return $this->service->_updateAuthGroupRule();
    }
}